package exotica.rs2;

import java.util.logging.Logger;

import exotica.rs2.net.ServerChannel;


/**
 * @author Sir Tom
 * 
 */
public class Server {

	/**
	 * The thread group
	 */
	public static ThreadGroup threads = new ThreadGroup("Workers");

	/**
	 * The main method into running the server
	 * @param args
	 */
	public static void main(String args[]) {
		try {
			Logger.getAnonymousLogger().info("Server on port ["+Constants.SERVER_PORT+"]");
			Logger.getAnonymousLogger().info("Client Version ["+Constants.CLIENT_VERSION+"]");
			new Thread(threads, new ServerChannel()).start();
		} catch (Exception _e) {
			_e.printStackTrace();
		}
	}
}
